﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:lakana="http://schemas.gasytek.com/wpf/lakana"
        mc:Ignorable="d"
        x:Class="Samples.GasyTek.Lakana.Shell"
        Height="600"
        Width="800"
        MinWidth="544"
        MinHeight="98"
        Loaded="WindowLoaded"
        Style="{DynamicResource FancyWindowStyle}"
        WindowStartupLocation="CenterScreen">
    <Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Close"
                        Executed="CloseCommandHandler" />
    </Window.CommandBindings>
    <DockPanel>
        <UniformGrid DockPanel.Dock="Top"
                     x:Name="Header"
                     Columns="2"
                     d:LayoutOverrides="Width">
            <Label Content="Lakana - Sample"
                   Foreground="White"
                   FontSize="21.333"
                   ContentTemplate="{DynamicResource LakanaTitleTemplate}" />
            <StackPanel Orientation="Horizontal"
                        Margin="0,0,15,0"
                        HorizontalAlignment="Right">
                <Button Content="{DynamicResource HomeIcon}"
                        Style="{DynamicResource MenuButtonStyle}"
                        MaxWidth="40"
                        Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}}, Path=HomeCommand}" />
                <Separator Margin="10,0"
                           Width="20"
                           Foreground="White"
                           Background="White"
                           BorderBrush="White"
                           RenderTransformOrigin="0.5,0.5">
                    <Separator.RenderTransform>
                        <TransformGroup>
                            <RotateTransform Angle="90" />
                        </TransformGroup>
                    </Separator.RenderTransform>
                </Separator>
                <Button Content="{DynamicResource ListIcon}"
                        Style="{DynamicResource MenuButtonStyle}"
                        MaxWidth="40"
                        Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}}, Path=ContactListCommand}" />
                <Separator Margin="10,0"
                           Width="20"
                           Foreground="White"
                           Background="White"
                           BorderBrush="White"
                           RenderTransformOrigin="0.5,0.5">
                    <Separator.RenderTransform>
                        <TransformGroup>
                            <RotateTransform Angle="90" />
                        </TransformGroup>
                    </Separator.RenderTransform>
                </Separator>
                <Button Content="{DynamicResource AboutIcon}"
                        Style="{DynamicResource MenuButtonStyle}"
                        MaxWidth="40"
                        Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}}, Path=AboutCommand}" />
            </StackPanel>
        </UniformGrid>
        <Border x:Name="Footer"
                DockPanel.Dock="Bottom"
                Height="55" />
        <Grid x:Name="Workspace"
              lakana:NavigationManager.IsMainWorkspace="True" />

    </DockPanel>
</Window>
